﻿using RM.Model.Rooms;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RM.Migrations
{
    public class RoomsDbContext : DbContext
    {
        public RoomsDbContext()
            : base("RoomManagement")
        { 
            
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            // base.OnModelCreating(modelBuilder);
        }

        public DbSet<Room> Rooms { get; set; }
        public DbSet<RoomType> RoomTypes { get; set; }

        public static class StaticRoomContext
        {
            public static RoomsDbContext RoomContext = new RoomsDbContext();
        }

    }
}
